:root {
  --swm-expandable-transition: transform 200ms ease;
  --ifm-code-font-size: 14px;
  --swm-logo-title-width: 177px;
  --swm-logo-height: 50px !important;
}

[class*='plugin-pages'] {
  background-color: #ffffff;
}
[data-theme='dark'][class*='plugin-pages'] {
  background-color: var(--swm-navy-dark-140);
}

table {
  display: table;
  width: 100%;
}

@media (max-width: 1280px) {
  table {
    display: block;
    width: 100%;
  }
}

table thead tr {
  border-bottom: 1px solid var(--ifm-table-border-color);
}

.platform-compatibility table {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.compatibility {
  overflow-x: auto;
}

.compatibility table {
  display: table;
  width: 100%;
  white-space: nowrap;
}

.compatibility td {
  padding: 0;
  border: transparent 2px solid;
  background: var(--ifm-background-color);
}

.compatibility th {
  background: var(--ifm-background-color);
  border: transparent 2px solid;
}

@media (min-width: 996px) {
  .header-github {
    margin-left: 1.5em;
  }
}

.header-github:before {
  display: flex;
  height: 24px;
  width: 24px;

  mask: url(/static/img/github.svg) no-repeat 100% 100%;
  mask-size: cover;
  content: '';

  background-color: var(--ifm-navbar-link-color);
}

@media (max-height: 420px) {
  .header-github:before {
    height: 20px;
    width: 20px;
  }
}

.header-github:hover:before {
  background-color: var(--ifm-navbar-link-hover-color);
}

.community-holder-container {
  display: flex;
  flex-wrap: wrap;
}
.community-holder-container-item {
  margin-right: 20px;
  text-align: center;
}
.community-imageHolder {
  max-width: 150px;
}

[class*='codeBlockContainer'] {
  box-shadow: none;
}

[class*='codeBlockContent'] pre {
  border: 1px solid var(--swm-border);
}

[class*='codeBlockContent'] pre,
[class*='codeBlockContent'] code {
  border-radius: 0;
  background-color: var(--swm-off-background);
  font-family: var(--ifm-font-family-monospace);
}

/* Add small padding, when some of the lines are too long in a code block */
[class*='codeBlockLines'] span:last-of-type {
  margin-right: 1em;
}

.theme-doc-version-badge {
  color: var(--swm-version-badge);
  background: var(--swm-version-badge-background);
  padding: 6px;
  border-radius: 8px;
  border: none;
  margin-bottom: 8px;
}

@media (max-width: 420px) {
  [class*='codeBlockContent'] pre,
  [class*='codeBlockContent'] code {
    -webkit-text-size-adjust: 100%;
  }
}

[class*='navbar__link']:not([class*='header-github']):not([role='button']) {
  display: none;
}

/* TODO: Remove after @swmansion-t-rex-ui 0.0.10 patch */
button[class*='DocSearch-Button'] {
  margin: 0 !important;
}
